<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%
	String path = request.getContextPath();//获得项目的根目录，上下文路径
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">
<title>超市账单管理系统</title>
<link rel="stylesheet" href="css/public.css" />
<link rel="stylesheet" href="css/style.css" />
<script src="js/jquery.js"></script>
</head>
<body>
	<!--头部-->
	<!-- <button id="btn">ajax</button> -->
	<header class="publicHeader">
		<h1>超市账单管理系统</h1>
		<div class="publicHeaderR">
			<p>
				<span>下午好！</span>
				<span style="color: #fff21b"> ${USER_LOGIN.userName }</span>
				, 欢迎你！
			</p>
			<a href="logOut.html">退出</a>
		</div>
	</header>
	<!--时间-->
	<section class="publicTime">
		<span id="time">2015年1月1日 11:11 星期一</span>
		<a href="#">温馨提示：为了能正常浏览，请使用高版本浏览器！（IE10+）</a>
	</section>
	<!--主体内容-->
	<section class="publicMian ">
		<div class="left">
			<h2 class="leftH2">
				<span class="span1"></span>
				功能列表
				<span></span>
			</h2>
			<nav>
				<ul class="list">
					<li id="active"><a href="billList.html">账单管理</a></li>
					<li><a href="providerList.ht">供应商管理</a></li>
					<li><a href="userList.html">用户管理</a></li>
					<li><a href="roleList.html">角色管理</a></li>
					<li><a href="password.html">密码修改</a></li>
					 <li><a href="goodsList.du">商品购买</a></li>
					<li><a href="logOut.html">退出系统</a></li>
				</ul>
			</nav>
		</div>
		<div class="right">
			<div class="location">
				<strong>你现在所在的位置是:</strong>
				<span>账单管理页面 >> 查看账单页面</span>
			</div>
			<div class="providerAdd">
				<!-- 执行文件上传必须是：post 、multipart/form-data -->
				<form action="" method="post" enctype=""  >
					<!--div的class 为error是验证错误，ok是验证成功-->
					<div>
						<label for="billCode">账单编号：</label>
						<input type="text" name="billCode" id="billCode" readonly="readonly" value="${BILL.billCode}" />
					</div>
					<div>
						<label for="productName">商品名称：</label>
						<input type="text" name="productName" id="productName" readonly="readonly" value="${BILL.productName}" />
						
					</div>
					<div>
						<label for="productDesc">商品描述：</label>
						<input type="text" name="productDesc" id="productDesc" readonly="readonly" value="${BILL.productDesc}"/>
						

					</div>
					<div>
						<label for="productUnit">商品单位：</label>
						<input type="text" name="productUnit" id="productUnit" readonly="readonly" value="${BILL.productUnit}"/>
						
					</div>
					<div>
						<label for="productCount">商品数量：</label> 
						<input type="text" name="productCount" id="productCount" readonly="readonly" value="${BILL.productCount}"/>
						
					</div>
					<div>
						<label for="totalPrice">商品总额：</label>
						<input type="text" name="totalPrice" id="totalPrice" readonly="readonly" value="${BILL.totalPrice}"/>
						
					</div>
					<div>
						<label for="isPayment">是否支付：</label>
						<c:if test="${BILL.isPayment==1}">
						<input type="text" name="isPayment" id="isPayment" readonly="readonly" value="未支付"/>
						</c:if>
						<c:if test="${BILL.isPayment==2}">
						<input type="text" name="isPayment" id="isPayment" readonly="readonly" value="已支付"/>
						</c:if>
					</div>
					<div>
						<label for="createdBy">创建者  ：</label>
						<input type="text" name="createdBy" id="createdBy" readonly="readonly" value="${BILL.createdBy}"/>
					</div>
					<div>
						<label for="creationDate">创建时间：</label>
						<input name="creationDate" id="creationDate" readonly="readonly" 
						value="<fmt:formatDate value="${BILL.creationDate}" 
						pattern="yyyy-MM-dd HH:mm:ss" />"/>
					</div>
					<div>
						<label for="providerId">供应商ID：</label>
						<input name="providerId" id="providerId" type="text" readonly="readonly" value="${BILL.providerId}" />
					</div>
				</form>
			</div>
		</div>
	</section>
	<footer class="footer"> 版权归北大青鸟 </footer>
	<script src="js/time.js"></script>
</body>
</html>